package com.demo.controller;


import com.demo.entity.Person;
import com.demo.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Ymj
 * @since 2020-11-23
 */
@RestController
@CrossOrigin
@RequestMapping("/demo/person")
public class PersonController extends BaseController<Person, PersonService>{
    private PersonService personService;
    @Autowired
    public void setPersonService(PersonService personService){

        this.personService = personService;
        this.manager = this.personService;
    }
}

